package com.jason.product.service;

import com.jason.product.dao.TccProductMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ProductService {
    @Resource
    TccProductMapper tccProductMapper;

    public int reduceNumber(int id,int number){
        tccProductMapper.updateNumberById(number,id);
        return 1;
    }
}
